﻿@model VehicleManagement.Models.CarInfo
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Edit</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.Partial("_PartviewDrivermanageNav")
<div class="content bc">
    <div class="content_link_warn f12">
        你当前的位置：车辆信息管理&gt&gt &nbsp;&nbsp;车辆信息修改
    </div>
    <div class="content_right fr" id="rightcontent">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            <fieldset>
            <div class="OutTitle">
                    <span>车辆信息修改</span></div>
                <div class="Box">
                    <div class="SubBox1 mt5 ml15 mr15 mb5">
                        <div class="SubTitle">
                            车辆基本信息</div>
                        <div class="SubBox-container">
                            <div class="text-wrap">
                                <div class="text-line">
                                    <div class="hide">

                                        @Html.EditorFor(model => model.CarAvailable)

                                    </div>
                                    <div class="box-detail1-linetype1 hide">
                                    <span class="labeldisplay">@Html.LabelFor(model => model.CarID):</span>
                                     @Html.EditorFor(model => model.CarID)@Html.ValidationMessageFor(model => model.CarID)
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CarNumber):</span>
                                       @Html.EditorFor(model => model.CarNumber)
                                        <div class="special-validate validateforcarinfo_c_carnumber">
                                            @Html.ValidationMessageFor(model => model.CarNumber)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CarType):</span>
                                        @Html.DropDownListFor(model => model.CarType,Model.getCarType())
                                        <div class="validate">
                                            @Html.ValidationMessageFor(model => model.CarType)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CarState):</span>
                                        @Html.DropDownListFor(model => model.CarState, Model.getCarState())
                                        <div class="special-validate">
                                            @Html.ValidationMessageFor(model => model.CarState)
                                        </div>
                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CarAvailable):</span>
                                        @Html.DisplayFor(model => model.CarAvailable)
                                        <div class="validate">
                                            @Html.ValidationMessageFor(model => model.CarAvailable)
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                    
                                    
                                </div>

                                <div class="text-line">
                                    <span class="spanType1">@Html.LabelFor(model => model.Remark):</span>
                                    @Html.TextAreaFor(model => model.Remark)
                                </div>
                            </div>
                        </div>
                    </div>
                
                </div>
                <div class="button-wrap">
                    <div class="submit-wrap">
                        <div class="divINsubmit saveEdit">
                            <input class="submit" type="submit" value="保存修改" /></div>
                    </div>
                    <div class="a-back mr15">
                        <div class="divINa-back">@Html.ActionLink("返回", "Index")</div>
                    </div>
                </div>
            </fieldset>
        }
    </div>
    @Html.Partial("_Partviewcarleftbar")
    <div class="content_contract fl">
        <a href="javascript:void(0)" class="btn_contract w8h32" id="contract" title="收缩">
        </a><a href="javascript:void(0)" class="btn_expand w8h32" id="expand" title="展开">
        </a>
    </div>
    <div class="cb">
    </div>
</div>
